#ifndef SES_BUTTON_H_
#define SES_BUTTON_H_

#include "ses_common.h"
#include "ses_scheduler.h"

// button wiring on SES board
#define BUTTON_ROTARY_PORT		PORTB
#define BUTTON_ROTARY_PIN		6
#define BUTTON_JOYSTICK_PORT	PORTB
#define BUTTON_JOYSTICK_PIN		7



/* Type of function pointer used as button callback */
typedef void (*pButtonCallback)();



/* Initializes rotary encoder and joystick button. */
void button_init();


/*
 * Sets callback for joystick button pressed event.
 *
 * @param callback 	a valid pointer to callback function or NULL to deactivate
 * 					the callback
 */
void button_set_Status_Pin(pButtonCallback callback);


#endif /* SES_BUTTON_H_ */
